/**
 * Copyright (2017, ) Institute of Software, Chinese Academy of Sciences
 * Copyright (2017, ) Bocloud Co,. Lmt
 */
package cn.abcsys.devops.core.application.configs;

import cn.abcsys.devops.core.Application;
import cn.abcsys.devops.core.Application.Type;

/**
 * @author wuheng@{otcaix.iscsa.ac.cn,beyondcent.com}
 * @date   May 20, 2017
 *
 */
public class BasicInfo {

	/**
	 *实例名称
	 */
	protected final String name;

	/**
	 *实例所关联的镜像名，最大长度不可超过256个字符，只能包含大小写字母和下划线
	 */
	protected final String imageName;
	
	/**
	 *实例所关联的镜像版本，最大长度不可超过16个字符，只能包含大小写字母和下划线
	 */
	protected final String imageVersion;
	
	/**
	 *实例实例启动脚本，最大长度不超过128
	 */
	protected final String startCmd;
	
	/**
	 * 类型，比如容器还是进程
	 */
	protected final Application.Type type;

	public BasicInfo(String name, String imageName, String imageVersion, String startCmd, Type type) {
		super();
		this.name = name;
		this.imageName = imageName;
		this.imageVersion = imageVersion;
		this.startCmd = startCmd;
		this.type = type;
	}

	/**
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	public String getImageName() {
		return imageName;
	}

	public String getImageVersion() {
		return imageVersion;
	}

	public String getStartCmd() {
		return startCmd;
	}

	public Application.Type getType() {
		return type;
	}

}
